<?php

namespace app\api\controller\questions;

use app\api\controller\Controllers;
use app\api\service\questions\QuestionCategory as QuestionCategoryService;

class QuestionCategory extends Controllers
{
    /**
     * 获取章节考点
     * @param QuestionCategoryService $service
     * @throws \think\db\exception\ModelNotFoundException
     * @return \think\Response
     */
    public function chapter(QuestionCategoryService $service)
    {
        return success($service->chapter());
    }

}
